#pragma once
#include "vehicle.h"
class Lorry : public Vehicle
{
private:
	double weight;
public:

	Lorry(void)
	{
		this->weight = 0;
	}

	Lorry( string brand, int year, double purchasingPrice, double sellingPrice, double weight )
	{
		this->brand = brand;
		this->year = year;
		this->purchasingPrice = purchasingPrice;
		this->sellingPrice = sellingPrice;
		this->weight = weight;
	}

	~Lorry(void)
	{
	}

	void Print( ostream& out )
	{
		out << "Lorry:" << endl;
		out << "Brand - " << this->GetBrand() << endl;
		out << "Year - " << this->GetYear() << endl;
		out << "Purchasing price - " << this->GetPurchasingPrice() << " Thousand SEK" << endl;
		out << "Selling Price - " << this->GetSellingPrice() << " Thousand SEK" << endl;
		out << "Weight - " << this->GetWeight() << " Tons" << endl << endl;
	}


	double GetWeight() { return this->weight; }
	void SetWeight( double weight ) { this->weight = weight; }
};

